﻿using CTM.Web.Data;
using CTM.Web.Models.Input;
using CTM.Web.Repositories;
using System.Linq;

namespace CTM.Web.Services
{
    public interface ICommentService : IApplicationService<Comment>
    {
    }

    public class CommentService : ApplicationService<Comment>, ICommentService
    {
        private IUnitOfWork unitOfWork;
        private ICommentRepository commentRepository;

        public CommentService(IUnitOfWork unitOfWork, ICommentRepository commentRepository)
            : base(unitOfWork, commentRepository)
        {
            this.unitOfWork = unitOfWork;
            this.commentRepository = commentRepository;
        }
    }
}